package org.jdpf.gui.rcp.neteditor.core.elements;

import org.jdpf.gui.rcp.neteditor.core.blocks.IGraphicBlock;

public class GraphicWire {
    private IGraphicBlock source, target;
    private int sourceOrder, targetOrder;
    
    public GraphicWire(IGraphicBlock source, int sourceOrder, IGraphicBlock target, int targetOrder){
	this.source = source;
	this.sourceOrder = sourceOrder;
	this.target = target;
	this.targetOrder = targetOrder;
	source.addOutputWire(this, sourceOrder);
	target.addInputWire(this, targetOrder);
    }
    
    public IGraphicBlock getSource(){
	return source;
    }
    
    public IGraphicBlock getTarget(){
	return target;
    }
    
    public int getSourceOrder(){
	return sourceOrder;
    }
    
    public int getTargetOrder(){
	return targetOrder;
    }
}
